namespace AdminApi.Domain;

public abstract class EntityBase
{
    /// <summary>
    /// 主键
    /// </summary>
    public Guid Id { get; set; }
    /// <summary>
    /// 是否启用
    /// </summary>
    public bool IsActived { get; set; } = true;
    /// <summary>
    /// 是否删除
    /// </summary>
    public bool IsDeleted { get; set; } = false;
    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreateAt { get; set; } = DateTime.Now;
    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime UpdateAt { get; set; } = DateTime.Now;
    /// <summary>
    /// 谁创建的
    /// </summary>
    public Guid CreatedBy { get; set; } = Guid.Empty;
    /// <summary>
    /// 谁最后更新的
    /// </summary>
    public Guid UpdatedBy { get; set; } = Guid.Empty;
    /// <summary>
    /// 备注
    /// </summary>
    public string? Remarks { get; set; } = string.Empty;
}